package com.Aug.util;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class DataUtil {

    public static String getNowString(String pattern) {
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(pattern);
       return LocalDate.now().format(dateTimeFormatter);
    }

    public static String getNowString(){
        return getNowString("yyyy-MM-dd");
    }

}
